<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="css/style.css">
    <title>改变网页背景色</title>
</head>
<body>
<input type="button" value="红色" onclick="color('red')">
<input type="button" value="黄色" onclick="color('yellow')">
<input type="button"  value="蓝色" onclick="color('blue')">

<!--内容发生改变后，执行是事件-->
<input type="color"  value="自定义" onchange="color_diy(this)">
</body>
<script src="./js/script.js"></script>
</html>